Calculate the date six months from the current dateΒΆ
Write a python program calculates the date six months
from the current date using the datetime module.
import datetime
print((datetime.date.today() + datetime.timedelta(6*365/12)).isoformat())
Output:
2019-04-15